<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5.1!';
});

Route::post('yaodian/register','api/PharmacyController/register');
Route::post('yaodian/login','api/PharmacyController/login');
Route::post('yaodian/son','api/PharmacyController/son_list');
Route::post('yaodian/update','api/PharmacyController/update');

Route::post('drug/kind/list','api/DrugController/kindlist');
Route::post('drug/add','api/DrugController/add');
Route::post('drug/select','api/DrugController/select');
Route::post('drug/update','api/DrugController/update');
Route::post('drug/has','api/DrugController/has');
Route::post('drug/show','api/DrugController/show');

Route::post('user/order/create','api/UserOrderController/create');
Route::post('user/order/list','api/UserOrderController/all');
Route::post('user/order/one','api/UserOrderController/one');
Route::post('user/order/pay','api/UserOrderController/pay');

Route::post('order/father_list','api/PharmacyOrderController/all');
Route::post('order/one','api/PharmacyOrderController/one');
Route::post('order/son_list','api/PharmacyOrderController/son_all');
Route::post('order/state','api/PharmacyOrderController/state');
Route::post('order/father_send','api/PharmacyOrderController/father_send');
Route::post('order/son_send','api/PharmacyOrderController/son_send');

//支付回调
Route::post('pay/no','api/PayNotifyController/payNotify');

return [

];
